<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title><!DOCTYPE html>
<html>
<head>
    <title>Random Number Stream</title>
</head>
<body>
    <h1>Random Number Stream</h1>
    <div id="random-number"></div>
    <script>
        const eventSource = new EventSource('http://127.0.0.1:8000/app1/random_num');
        eventSource.onmessage = function(event) {
            document.getElementById('random-number').innerText = 'Random Number: ' + event.data;
        };
    </script>
</body>
</html>
</title>
</head>
<body>

</body>
</html>